Page({
	data: {
		no: null,
		compaly: ['sf','yt','st','yd','bs','jt','yz'],
		com: ['顺丰','圆通','申通','韵达','百世','极兔','邮政'],
		index: 0
	},
	noInput(e) {
		this.setData({
			no: e.detail.value
		})
	},
	companyInput(e) {
		this.setData({
			index: e.detail.value
		})
	},
	search() {
		wx.request({
		//   url: `https://www.kuaidi100.com/chaxun?com='sto'&nu='229739649983'`,
		url: 'https://www.kuaidi100.com/query?type=yunda&postid=432160848263424&id=19&valicode=&temp=0.2547947262655583&phone=',
		  method: 'GET',
		  header: {
			  'content-type': 'application/json'
		  },
		  success: res => {
			//   this.setData({
			// 	  expressInfo: res.data
			//   })
			console.log(res);
		  }
		})
	},
})